package cn.rumoss.basic.finallyt;

/**
 * @ClassName FinallyTest7
 * @Description //TODO
 * @Author HeCG
 * @Date 19-5-19 下午2:10
 */
public class FinallyTest7 {

    public static void main(String[] args) {

        System.out.println(test5());
    }

    public static int test5() {
        int b = 20;

        try {
            System.out.println("try block");

            b = b /0;

            return b += 80;
        } catch (Exception e) {

            System.out.print("catch block");
            System.out.println(" b = " + b);
            return b += 15;
        } finally {

            System.out.println("finally block");

            if (b > 25) {
                System.out.println("b>25, b = " + b);
            }

            b += 50;
        }

        //return b;
    }

}
